class fragments::node::npmrc(
  String $mainuser = lookup('mainuser')
) {
  file { "/home/${mainuser}/.npmrc":
    ensure => present,
    owner => "$mainuser",
    content => 'registry=https://registry.npm.taobao.org'
  }
}
